package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.UserInfo;

import java.util.List;

public interface IUserInfoService {
    void update(UserInfo userInfo);

    void save(UserInfo userInfo);

    void delete(String id);

    UserInfo get(String id);

    List<UserInfo> list();

    boolean findByPhone(String phone);

    void sendMessages(String phone);



    void register(String phone, String nickname, String password, String rpassword, String verifyCode);

    /**
     * 登录查询 如果有账号就返回账号，没有就报错
     * @param username
     * @param password
     * @return
     */
    UserInfo login(String username, String password);

    List<UserInfo> getByCity(String keyword);
}
